package com.ship.contract.bean;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ship.common.core.base.ContractBaseBean;
import com.ship.common.core.base.Joinable;
import com.ship.common.core.mapping.Label;
import com.ship.common.core.mapping.SearchItem;
import com.ship.common.core.mapping.TableColumn;
import lombok.Data;


import java.util.Date;

/**
 * @author 31463
 */
@TableName("con_excellent_cases")
@Data
public class ConExcellentCases extends ContractBaseBean implements Joinable {

    private static final long serialVersionUID = 2215201796445859135L;
    /**
     * 合同主键
     */
    private Long conId;

    /**
     *执行编号
     */
    @Label(value="执行编号")
    @SearchItem
    @TableColumn
    private String contractNumber;

    /**
     *合同名称
     */
    @Label(value="合同名称")
    @SearchItem
    @TableColumn
    private String contractName;

    /**
     *合同类型
     */
    @Label(value="合同类型",enumContent = "合同类型")
    @SearchItem
    @TableColumn
    private Integer typeOfContract;

    /**
     *优秀之处
     */
    @Label(value="优秀之处")
    @SearchItem
    @TableColumn
    private String excellent;

    /**
     *申请人
     */
    @Label(value="申请人")
    @SearchItem
    @TableColumn
    private String applicant;

    /**
     *审批人
     */
    @Label(value="审批人")
    @SearchItem
    @TableColumn
    private String approvedBy;

    /**
     *归档时间
     */
    @Label(value="归档时间")
    @SearchItem
    @TableColumn
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date archiveTime;

    @Label(value="流程实例id")
    @TableColumn
    private String processInstanceId;
    @Label(value="状态")
    @TableColumn
    private Integer status;

    @Override
    public String getLabel() {
        return null;
    }

    @Override
    public String getValue() {
        return null;
    }
}
